package com.yst.sqlbuilder.mathExpression;

import com.yst.lambda.TableFieldFunc;

public class SumFieldExpression<T> extends FieldExpression<T>{


    public SumFieldExpression(TableFieldFunc<T, ?> field, String alias) {
        super(field, alias);
    }

    public SumFieldExpression(TableFieldFunc<T, ?> field) {
        super(field);
    }

    @Override
    protected String formatField(String field) {
        return String.format(String.format("SUM(%s)",field));
    }
}
